<?php

/**
 * This file is part of http://waltertamboer.nl
 * @package WalterTamboer
 * @author Walter Tamboer
 */

/**
 * A view helper to get the base url of the website.
 */
class FW_View_Helper_BaseUrl extends FW_View_Helper_Abstract
{
    /**
     * The entry point of this view helper.
     */
    public function baseUrl()
    {
        $frontController = FW_Controller_Front::singleton();

        return rtrim($frontController->getBaseUrl(), '/');
    }
}
